package com.uni.service;

import com.uni.pojo.Address;
import com.uni.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Author:      Unirithe/Mr.Chao
 * CSDN:        https://blog.csdn.net/Unirithe
 * CreatedTime:  2022/1/28 10:53
 **/
public interface UserService {
    User login(User user);
    User getUserByCode(String userCode);
    User update(User user);
    User updateImg(User user);
    User register(User user);
    List<User> getAllUser();
    List<User> getUserByMapPojos(Map<String, String> mapPojos);

    List<User> getUserRoleByMapPojos(Map<String, String> mapPojos);

    User addUserWithRole(User user, Integer rid, Address address);

    int removeUserById(Long id);

    int removeUserByIds(List<Long> ids);
}
